Don't cache replacement patterns in wfEscapeWikitext() during tests
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 3 Nov 2016 18:50:44 +0000 (11:50 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Fri, 4 Nov 2016 02:27:13 +0000 (02:27 +0000)
commit643b1b40a8f854695ea4e91281bb78c30d3ccd09
treee24e2fa4a6bb32e51a41113158b08b7761801e9f
parent0ca156364425e959e8447ee00f9abd555c9904ae
Don't cache replacement patterns in wfEscapeWikitext() during tests

Parser tests depend upon being able to change the value of
$wgEnableMagicLinks at runtime, so skip caching the replacement patterns
while parser tests or phpunit tests are being run.

Change-Id: Ic9fe4fe898aa353bdefa2bf8207b77d2ac14887f
includes/GlobalFunctions.php